__author__ = 'zoulida'
from ctypes import *

user32 = windll.LoadLibrary('user32.dll')

user32.LockWorkStation()

import time
time.sleep(3)

import win32api
import win32con
import time

while True:
    time.sleep(1)
    win32api.keybd_event(86, 0, 0, 0)  # vimport win32api
import win32con
import time

while True:
    time.sleep(5)
    win32api.keybd_event(86, 0, 0, 0)  # v键位码是86
    win32api.keybd_event(86, 0, win32con.KEYEVENTF_KEYUP, 0)  # 释放按键
    win32api.keybd_event(86, 0, win32con.KEYEVENTF_KEYUP, 0)  # 释放按键